<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <base href="<?php echo base_url(); ?>"/>
    <title><?php echo $title; ?></title>
    <link href="style/base.css" rel="stylesheet" type="text/css" />
    <link href="style/common.css" rel="stylesheet" type="text/css" />
    <link href="style/star.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" language="javascript">
        $(function(){
            $("#star_hot_paihang").find("dl").each(function(){
                $(this).addClass("ph0"+$(this).index());
            })
            $("#star_hot_paihang").find("dt").click(function(){
                var dls =$(this).parent("dl").siblings();
                dls.find("dd").hide();
                dls.find("dt").show();
                $(this).hide();
                $(this).siblings("dd").show();
            })
        })
    </script>
    <!--[if IE 6]>
    <script type="text/javascript" language="javascript" src="js/ie6/DD_belatedPNG_0.0.8a-min.js"></script>
    <script type="text/javascript" language="javascript">
        DD_belatedPNG.fix('.star_top_logo img,.footer_logo img,.star_top_txt img');
    </script>
    <![endif]-->
</head>
<body>
<!-- head S-->
<?php
include 'header.php';
?>
<!-- head E-->

<!-- 顶部 S -->
<?php
include 'star_man.php';
?>
<!-- 顶部 E -->

<!-- 每日之星选项卡 S -->
<?php
include 'star_nav.php';
?>
<!-- 每日之星选项卡 E -->

<!-- 人气女郎 S -->
<div class="star_hot clearfix">
    <div class="star_hot_inner">

        <div class="star_hot_top">
            <div class="star_hot_banner"><img src="images/star_hot_banner.jpg" /></div>
            <!--排行榜 S-->
            <div class="star_hot_paihang" id="star_hot_paihang">
                <h3>每日之星人气投票排行榜</h3>
                <!--此处的1、2、3是用js自动添加的，绑定程序时不需要考虑-->
                <?php foreach($girl['data'] as $key=>$item):?>
                    <?php if($key < 3){?>
                <dl>
                    <dt><span><?php echo $item['name'];?></span><?php echo $item['voteCount'];?>票</dt>
                    <dd>
                        <a href="index.php/login/showperson?id=<?php echo $item['uid'];?>" target="_blank"><img src="<?php if(isset($item['headurl'])) print base_url().'uploads/'.$item['headurl']; else print 'images/touxiang_img.jpg';?>" /></a>
                        <div>
                            <h4><?php echo $item['city'];?></h4>
                            <span class="s1"><a href="index.php/login/tinyInterview?id=<?php echo $item['uid'];?>" target="_blank">查看微访谈</a></span>
                            <span class="s2"></span>
                            <span class="s3"><?php echo $item['voteCount'];?>票</span>
                        </div>
                    </dd>
                </dl>
                <?php }?>
                <?php endforeach;?>

            </div>
            <!--排行榜 S-->
        </div>
        <!--女孩列表 S-->
        <div class="star_hot_list">
            <ul>
                <?php foreach($girl['data'] as $key=>$item):?>
                <?php if($key > 2){?>
                <li>
                    <div class="img">
                        <a href="index.php/login/showperson?id=<?php echo $item['uid'];?>"><img src="<?php if(isset($item['headurl'])) echo base_url().'uploads/'.$item['headurl'];?>" /></a>
                        <span><?php echo $item['city'];?></span>
                    </div>
                    <p><span><?php echo $item['name'];?></span><a href="index.php/login/tinyInterview?id=<?php echo $item['uid'];?>" target="_blank">查看微访谈</a></p>
                    <a href="javascript:;" class="btn_vote"><span><?php echo $item['voteCount'];?>票</span></a>
                </li>
                <?php }?>
                <?php endforeach;?>
            </ul>
        </div>
        <!--女孩列表 E-->
    </div>
</div>
<!-- 人气女郎 E -->


<!-- 底部 S -->
<?php include 'footer.php'; ?>
<!-- 底部 E -->
</body>
</html>
